{% extends "hostmanage/base.html" %}
{% block content %}
{{ host }}

<table  border="1" >
	<tr>
		<td>主机名称&nbsp;&nbsp;&nbsp;&nbsp;</td>
		<td>编号&nbsp;&nbsp;&nbsp;&nbsp;</td>
		<td>应用&nbsp;&nbsp;&nbsp;&nbsp;</td>
		<td>添加时间&nbsp;&nbsp;&nbsp;&nbsp;</td>
		<td>厂商&nbsp;&nbsp;&nbsp;&nbsp;</td>
		<td>产品型号&nbsp;&nbsp;&nbsp;&nbsp;</td>
		<td>产品序列号&nbsp;&nbsp;&nbsp;&nbsp;</td>
		<td>CPU核心数&nbsp;&nbsp;&nbsp;&nbsp;</td>
		<td>内存&nbsp;&nbsp;&nbsp;&nbsp;</td>
		<td>操作系统&nbsp;&nbsp;&nbsp;&nbsp;</td>
		<td>硬盘大小&nbsp;&nbsp;&nbsp;&nbsp;</td>
		<td>IP地址&nbsp;&nbsp;&nbsp;&nbsp;</td>
		<td>操作</td>
		
	</tr>

	<tr>
		<td>{{ host.hostname }}</td>
		<td>{{ host.number }}</td>
		<td>{{ host.application }}</td>
		<td>{{ host.date_added|date:'M d, Y H:i' }}</td>
		{% for hostinfo in hostinfos %}
			<td>{{ hostinfo.manufacturer }}</td>
			<td>{{ hostinfo.productmode }}</td>
			<td>{{ hostinfo.serialnumber }}</td>
			<td>{{ hostinfo.cpu }}</td>
			<td>{{ hostinfo.men }}</td>
			<td>{{ hostinfo.os }}</td>
			<td>{{ hostinfo.disk }}</td>
		{% endfor %}
			<!-- <td>
				{% for hostip in hostips %}
					{{ hostip.ip }}
				{% endfor %}
			</td> -->
			<td>
				<select>
					{% for hostip in hostips %}
						<option>
							{{ hostip.ip }}
						</option>
					{% endfor %}
				</select>
				
			</td>
		
		<td><a href="{% url 'hostmanage:edit_host' host.id %}">编辑</a></td>
	</tr>

</table>
	<a href="">返回</a>

{% endblock content %}